package cn.com.cifi.mars.mapper.mars;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.com.cifi.mars.bean.dto.GroupPriceRecordDto;
import cn.com.cifi.mars.bean.dto.PriceCoreDetailDTO;
import cn.com.cifi.mars.entity.PriceCoreDetail;

/**
 * <p>
 * 货值审批核心指标详情表 Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2021-07-07
 */
public interface PriceCoreDetailMapper extends BaseMapper<PriceCoreDetail> {

	void insertBatch(@Param("list")List<PriceCoreDetail> list);

	void updateByProjectId(@Param("projectId")String projectId);

	List<PriceCoreDetailDTO> selectNewstByProjectId(@Param("projectId")String projectId);
	
	List<PriceCoreDetail> selectByFlowId(@Param("billId")String billId);

	List<PriceCoreDetail> selectByVersionId(@Param("versionId")String versionId);

	void saveGroupRefreshRecord(@Param("projectId")String projectId,@Param("schemeId") String schemeId, @Param("state")int state);

	List<GroupPriceRecordDto> selectGroupPriceRecord();

	void updateGroupRefreshRecord(@Param("id") Integer id);

}
